#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint flutter_qq_login.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
  s.name             = 'flutter_qq_login'
  s.version          = '0.0.1'
  s.summary          = 'Flutter QQ Login Plugin'
  s.description      = <<-DESC
Flutter QQ Login Plugin
                       DESC
  s.homepage         = 'http://example.com'
  s.license          = { :file => '../LICENSE' }
  s.author           = { 'Your Company' => 'email@example.com' }
  s.source           = { :path => '.' }
  s.source_files = 'Classes/**/*'
  s.public_header_files = 'Classes/**/*.h'
  s.resources = 'Assets/TencentOpenApi_IOS_Bundle.bundle'
  s.dependency 'Flutter'
  s.platform = :ios, '11.0'

  # Flutter.framework does not contain a i386 slice.
  # s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }

  s.vendored_frameworks = 'Framework/TencentOpenAPI.framework'
  #s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'OTHER_LDFLAGS' => '-fobjc-arc', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  #s.user_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'OTHER_LDFLAGS' => '-fobjc-arc', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
    s.pod_target_xcconfig = {
      'DEFINES_MODULE' => 'YES',
      'OTHER_LDFLAGS' => '$(inherited) -fobjc-arc -framework Flutter -framework WebKit -framework Security -framework SystemConfiguration -framework CoreGraphics -framework CoreTelephony -liconv -lsqlite3 -lz -lstdc++',
      'OTHER_LIBTOOLFLAGS' => '$(inherited) -ObjC',
      'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
    }
    s.user_target_xcconfig = {
      'DEFINES_MODULE' => 'YES',
      'OTHER_LDFLAGS' => '$(inherited) -fobjc-arc -framework Flutter -framework WebKit -framework Security -framework SystemConfiguration -framework CoreGraphics -framework CoreTelephony -liconv -lsqlite3 -lz -lstdc++',
      'OTHER_LIBTOOLFLAGS' => '$(inherited) -ObjC',
      'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
    }
end
